<?php $this->_extends('../_layouts/blank_layout'); ?>
<?php $this->_block('contents'); ?>
<?foreach ($instore as $i):?>
类型：入库单&nbsp;&nbsp;&nbsp;&nbsp;
入库ID：<?=$i['id']?>&nbsp;&nbsp;&nbsp;&nbsp;
采购确认日期：<?=$i['confirmed_time']?>
<table class="print_table">
<tr>
	<th width="400">产品</th>
	<th width="50">数量</th>
	<th width="50">价格</th>
	<th width="60">架位</th>
</tr>
<?$total_price = $total_qty = 0;?>
<?foreach ($i['item'] as $ii):?>
<?$total_price += $ii['price'] * $ii['quantity'];?>
<?$total_qty += $ii['quantity'];?>
<tr>
	<td><?=$ii['product_number']?>&nbsp;<?=$ii['product_name']?></td>
	<td align="center"><?=$ii['quantity']?></td>
	<td align="center"><?=$ii['price']?></td>
	<td align="center"><?=$ii['shelf_position']?></td>
</tr>
<?endforeach;?>
<tr>
	<td align="right"><b>总计：</b></td>
	<td align="center"><b><?=$total_qty?></b></td>
	<td align="center"><b><?=sprintf('%.2f', $total_price)?></b></td>
	<td></td>
</tr>
</table>
备注：<?=$i['notes']?>
<br />
制单人：<?=$i['make_user_name']?>&nbsp;&nbsp;&nbsp;&nbsp;
采购确认：<?=$i['confirmed_user_name']?>&nbsp;&nbsp;&nbsp;&nbsp;
仓库审核：<?=$i['storage_audit_user_name']?>
<div class="PageNext"></div>
<?endforeach;?>
<?php $this->_endblock();?>